Learn how to index data to Algolia daily.
AlgoliaProductIndex_v2
job (full catalog indexing or reindexing)AlgoliaProductDeltaIndex_v2
job (ongoing indexing)AlgoliaProductPriceIndex_v2
job (variant-level record model only)AlgoliaProductInventoryIndex_v2
job (variant-level record model only)AlgoliaCategoryIndex_v2
jobAlgoliaProductDeltaIndex_v2
productID
s from the output file of the B2C delta export, returns the product objects from the database, enriches/transforms them and sends them to Algolia, fully replacing the product object with the same objectID
in the index.
Which objects are included: B2C Product objects assigned to the site that have changed since the last job run (with either Business Manager or a product feed import), enriched with price and inventory information.
Changes to master products will cause its variants to be included in the delta as these can inherit attributes from the master.
AlgoliaProductIndex_v2
job, or a create a custom job based on the algoliaProductIndex
step to update changes in dynamically calculated values.fullRecordUpdate
(default) - each exported product object fully replaces the existing Algolia product record with the same ID in the index.
It includes changes to existing products, as well as the addition and removal of products.
Fully replacing the product record in the index means that attributes that are not selected for indexing will be removed from the record in the index.
For more information see Full record updates.
This also deletes old/stale properties from the Algolia index that were removed since the last export.
partialRecordUpdate
using the job’s indexingMethod
parameter.
This mode performs a partial update on the records in the index, meaning that only the attributes that are sent during the job run are updated for each record, leaving the rest intact.
This mode can be used for multi-instance indexing, where not all ongoing jobs are run from the same Salesforce B2C instance.
You can use the attributeListOverride
job step parameter to define a smaller set of attributes to update when using partialRecordUpdate
.
For more info on partial record updates, see here.algolia
): change this if you’d like the B2C delta export job to use another work directory (see below);productDeltaExport
): the B2C catalogDeltaExport
job step will automatically create a delta export job with this ID under Site Development > Delta Exports. This parameter, in conjunction with consumer, determines the work directory inside Impex
(Impex/ src/platform/outbox/<consumer>/<deltaExportJobName>/
).algoliaProductDeltaIndex
job step parametersconsumer
job parameter, leave them linkeddeltaExportJobName
job parameter, leave them linkedfullRecordUpdate
(default) or partialRecordUpdate
, as for the preceding Record update method.0
): allowed percentage of records failing to be indexed before marking the job in error. Records successfully sent are kept in the Algolia indices.LocalesForIndexing
custom preference.AlgoliaProductPriceIndex_v2
and AlgoliaProductInventoryIndex_v2
jobs are highly optimized, targeted jobs to update price and inventory data, respectively.
Each of these jobs iterates over all B2C Products assigned to the configured site and updates price/inventory information for your Algolia products with a partial update.
AlgoliaProductIndex_v2
job, with attributeListOverride=variants
and indexingMethod=partialRecordUpdate
as step parameters.price
Algolia product property for AlgoliaProductPriceIndex_v2
andin_stock
Algolia product property for AlgoliaProductInventoryIndex_v2
.algoliaProductPricePartialIndex
and algoliaProductInventoryPartialIndex
job step parameters, respectively"price"
for algoliaProductPricePartialIndex
;"in_stock"
for algoliaProductInventoryPartialIndex
.0
): allowed percentage of failed updates before marking the job as an error. Successful updates are kept in the Algolia indices.
LocalesForIndexing
custom preference.
AlgoliaCategoryIndex_v2
AlgoliaCategoryIndex_v2
job to update your category index.
You should run it every time your category structure changes.
AlgoliaProductDeltaIndex_v2
job every time you know your product data has been updated;AlgoliaProductPriceIndex_v2
job every time you know your price data has been updated, such as when a promotion or a new price book has been activated;AlgoliaProductInventoryIndex_v2
job every time you know your inventory data has been updated; you can run this job frequently to keep your inventory in sync;AlgoliaCategoryIndex_v2
job every time you know your categories have been updated.